package models;
 
import java.util.*;
import javax.persistence.*;
 
import play.db.jpa.*;
 
@Entity
public class Reponse extends Model {
 
	//public int id;
    public Date date;
    
    @Lob
    public String message;
    
    @ManyToOne
    public User user;
	
	@ManyToOne
	public Message topic;
    
    public Reponse(Message topic, User user, String content) 
	{
		this.topic = topic;
        this.user = user;
        this.message = content;
        this.date = new Date();
    }
 
}